package com.cskaoyan.controller.user;

import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.user.UserAddressService;
import com.cskaoyan.service.user.UserHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jzp
 * @since 2022/11/19 22:02
 */
@RestController
@RequestMapping("admin/history/")
public class UserHistoryController {
    @Autowired
    UserHistoryService userHistoryService;

    @RequestMapping("list")
    public BaseRespVo list(BasePageInfo info, String keyword, String userId) {
        CommonData commonData = userHistoryService.list(info , keyword, userId);
        return BaseRespVo.succeed(commonData);
    }
}